{include file="pub:header" /}
</head>
<body>

<div class="pad_lr_10" >
	<form action="{:url('edit')}" method="post" id="formpost">
	<input type="hidden" name="id" value="{$info['id']}">
    <table width="100%" cellspacing="0" class="table_form">
        <tbody>
			<tr>
				<th><font color="red">*</font> 配置标识：</th>
				<td>
					<input name="name" type="text" value="{$info['name']}" class="input-text" size="50">
					<br/><span class="gray">用于config函数调用，只能使用数字字母或下划线且不能重复</span>
				</td>
			</tr>

			<tr>
				<th><font color="red">*</font> 配置标题：</th>
				<td>
					<input name="title" type="input" value="{$info['title']}" class="input-text" size="50">
                    <span class="gray ml10">用于后台显示的配置标题</span>
				</td>
			</tr>

			<tr>
				<th>配置类型：</th>
				<td>
			      <select name='type' class='select'>
					{volist name=":config('CONFIG_TYPE_LIST')" id="vo"}
					<option value='{$key}' {if $info['type'] eq $key} selected{/if}>{$vo}</option>
					{/volist}
                  </select>
                  <span class="gray ml10">系统会根据不同类型解析配置值</span>
				</td>
			</tr>

			<tr>
				<th>配置分组：</th>
				<td>
				    <select name='group' class='select'>
					  {volist name=":config('CONFIG_GROUP_LIST')" id="vo"}
					    <option value='{$key}' {if $info['group'] eq $key} selected{/if}>{$vo}</option>
					  {/volist}
					</select>
                    <span class="gray ml10">配置分组 用于批量设置 不分组则不会显示在系统设置中</span>
				</td>
			</tr>
			<tr>
			  <th>配置值：</th>
			  <td>
			    <textarea name="value" style="width:500px;height:50px" class="input-text">{$info['value']}</textarea>
			  </td>
			</tr>
			<tr>
			  <th>配置项：</th>
			  <td>
			    <textarea name="extra" style="width:500px;height:50px" class="input-text">{$info['extra']}</textarea>
			    <br/><span class="gray">如果是枚举型 需要配置该项</span>
			  </td>
			</tr>
			<tr>
			  <th>配置说明：</th>
			  <td>
			    <textarea name="remark" style="width:500px;height:50px" class="input-text">{$info['remark']}</textarea>
			  </td>
			</tr>
			<tr>
				<th width="120">&nbsp;</th>
                <td valign="bottom">
					<input class="smt mr10" type="button" onclick="ajaxpost('formpost')" value="<?php echo !$info?'添加':'修改'?>" />&nbsp;&nbsp;
				</td>
			</tr>
        </tbody>
    </table>
    </form>
</div>


<include file="Public:footer" />
